import { createStore } from 'vuex'

const userInfo = {
  namespaced: true, 
  state: {
    userId : 0,
    userName:'',
    phone:0,
    password:'',
    address:'',
  },
  getters: {
  },
  mutations: {
    adduserInfo(state,user){
      state.userId = user.userId
      state.userName = user.userName
      state.phone = user.phone
      state.password = user.password
      state.address = user.address

    },


  },
  actions: {
  },
}

export default createStore({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    userInfo,
  }
})
